package pub.guoxin.oops.manager.service;

import org.springframework.data.domain.Page;
import pub.guoxin.oops.manager.vo.GroupIdNameVo;
import pub.guoxin.oops.manager.vo.GroupVo;
import pub.guoxin.oops.manager.vo.GroupPageVo;
import pub.guoxin.oops.model.Group;
import pub.guoxin.oops.model.User;

import java.util.List;

/**
 * Created by guoxin on 18-1-30.
 */
public interface GroupService {
    Group add(User user, GroupVo groupAddVo);

    Group del(String id);

    Page<GroupPageVo> page(User user, Integer pageNumber, Integer pageSize);

    Group modify(User user, GroupVo groupAddVo);

    List<GroupIdNameVo> list(String companyId);
}
